﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace Streaming_Service.User {
    [DataContract]
    public class UserSession {
        // Token to recognize the login session for the user.
        [DataMember]
        public string Token { get; set; }

        // The id of the user.
        [DataMember]
        public int UserId { get; set; }

        // Birthday of the user
        [DataMember]
        public DateTime? Birthday { get; set; }

        // Name of the user
        [DataMember]
        public string Name { get; set; }

        // Email of the user
        [DataMember]
        public string Email { get; set; }

        // Is the user admin
        [DataMember]
        public bool IsAdmin { get; set; }

        public UserSession() {
            Token = null;
            UserId = -1;
            Birthday = null;
            Name = null;
            Email = null;
            IsAdmin = false;
        }
    }
}